﻿using System;
using System.Collections.Generic;
using System.Text;
using WindowsLive.Writer.Api;
using System.Windows.Forms;

namespace SmugMugToLiveWriter
{
    //globally unique identifier (GUID)
    [WriterPlugin("ac789ef9-bc8d-4624-a7aa-fe977be12519", "SmugMugToLiveWriter")]
    [InsertableContentSource("Insert SmugMug Image")]
    public class SmugMugContent : ContentSource
    {
       public override DialogResult CreateContent(IWin32Window dialogOwner, ref string content)
       {
           GetSmugMugImages f = new GetSmugMugImages();
           DialogResult x =f.ShowDialog(dialogOwner);

           if (x == DialogResult.OK)
               content = f.toSend;

           return x;
       }  
    }
}
